import LoadableComponent from '../utils/LoadableComponent'

export default [
    { //活动管理
        path: '/activityManage/activity',
        components: LoadableComponent(() => import('../containers/ActivityManage/ActivityManageContainer')) //参数一定要是函数，否则不会懒加载，只会代码拆分
    },
    { //课程管理
        path: '/activityManage/classManage',
        components: LoadableComponent(() => import('../containers/ActivityManage/ClassManageContainer'))
    },
    { //奖品管理
        path: '/activityManage/giftManage',
        components: LoadableComponent(() => import('../containers/ActivityManage/GiftManageContainer'))
    },
    { //分发渠道
        path: '/activityManage/channelList',
        components: LoadableComponent(() => import('../containers/ActivityManage/ChannelListContainer'))
    },
    { //参与用户
        path: '/activityManage/userList',
        components: LoadableComponent(() => import('../containers/ActivityManage/UserListContainer'))
    },
]